import com.wang.entity.User;
import com.wang.mapper.UserMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Scanner;

public class T {
    @Test
    public void tt() throws IOException {
        ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        UserMapper userMapper = context.getBean("userMapper", UserMapper.class);
        List<User> userList = userMapper.selectUser();
        for (User user : userList) {
            System.out.println(user);
        }

    }
    @Test
    public void a()
    {

        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for(int i=a; i<=b; i++)
        {
            if (i >= 3)
            {
                String m = "";
                int k = 2;
                int j = i;
                while (j != k)
                {
                    if (j % k == 0)
                    {
                        m = m + k + "*";
                        j = j / k;
                    }
                    else if (j % k != 0)
                    {
                        k++;
                    }
                }
                m = m + k;
                System.out.println(i + "=" + m);
            }
            else
            {
                System.out.println(i + "=" + i);
            }
        }
    }
    }

